using NUnit.Framework;
using Solution;

namespace Tests
{
    public class Tests
    {

        private Class1 c1 = new Class1();
        [SetUp]
        public void Setup()
        {
        }

        [Test]
        public void Test1()
        {
            int actual = c1.LengthOfLongestSubstring("bbbbbbbbbbbbb");
            Assert.AreEqual(1, actual);
        }


        [Test]
        public void Test2()
        {
            int actual = c1.LengthOfLongestSubstring("abcabcbb");
            Assert.AreEqual(3, actual);
        }

        [Test]
        public void Test3()
        {
            int actual = c1.LengthOfLongestSubstring("pwwkew");
            Assert.AreEqual(3, actual);
        }


        [Test]
        public void Test4()
        {
            int actual = c1.LengthOfLongestSubstring("au");
            Assert.AreEqual(2, actual);
        }


        [Test]
        public void Test5()
        {
            int actual = c1.LengthOfLongestSubstring("aeabbaccded");
            Assert.AreEqual(3, actual);
        }


        [Test]
        public void Test6()
        {
            int actual = c1.LengthOfLongestSubstring("aab");
            Assert.AreEqual(2, actual);
        }

        [Test]
        public void Test7()
        {
            int actual = c1.LengthOfLongestSubstring("");
            Assert.AreEqual(0, actual);
        }


        [Test]
        public void Test8()
        {
            int actual = c1.LengthOfLongestSubstring("a");
            Assert.AreEqual(1, actual);
        }


        [Test]
        public void Test9()
        {
            int actual = c1.LengthOfLongestSubstring("baa");
            Assert.AreEqual(2, actual);
        }
        


        [Test]
        public void Test10()
        {
            int actual = c1.LengthOfLongestSubstring("tmmzuxt");
            Assert.AreEqual(5, actual);
        }
    }
}